<?php
    require('agreement.doc.php');
    $app->get(
        '/agreement',
        function() use($app){
            $app->render('agreement.php');
        }
    );
	 $app->get(
        '/contract',
        function() use($app,$db2){
			$data='<!doctype html><html><head><meta charset="utf-8"><title>无标题文档</title></head><body>';
			$rs=$db2->select(1, 'tb_contract', '*', array('tbid'=>1));
			$data.=$rs['content'];
			$data.='</body></html>';
			echo $data;
        }
    );
?>
